<h2>View Newsletters</h2>
<table cellpadding="0" cellspacing="0" width="100%">
    <thead>
        <tr>
            <th>Title</th>
            <th>Options</th>
        </tr>
    </thead>
    <tbody>
        <?php
            if(!empty($newsletters)) {
                foreach($newsletters as $key => $newsletter) {
        ?>
                <tr>
                    <td><?php echo $newsletter['name'] ?></td>
                    <td><!-- <a href="#">edit</a> | --> <a href="<?php echo site_url() . "/newsletter/Newsletter_controller/delete/" . $newsletter['newsletter_id'] ?>">delete</a></td>
                </tr>
        <?php
                }
            }
        ?>
    </tbody>
</table>